/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/file.html#wxremovesavedfileobject)
 * @param filePath [string] 需要删除的文件路径
 */
export default function remove_saved_file(filePath: string) {
	return new Promise<{
		success: boolean
	}>((resolve) => {
		wx.removeSavedFile({
			filePath,
			success() {
				resolve({
					success: true
				});
			},
			fail() {
				resolve({
					success: false
				});
			}
		});
	});
}
